package com.wap.framework.service;

import java.util.List;

import com.wap.framework.dao.UserManageDAO;
import com.wap.framework.model.User;

public class UserManageServiceImpl implements UserManageService {

	private UserManageDAO userManageDAO;
	public void setUserManageDAO(UserManageDAO userManageDAO) {
		this.userManageDAO = userManageDAO;
	}

	@Override
	public void addUser(User user) {		
		this.userManageDAO.addUser(user);
	}

	@Override
	public void deleteUser(int[] ids) {		
		this.userManageDAO.deleteUser(ids);		
	}

	@Override
	public User editUser(int id) {		
		return this.editUser(id);
	}	
	
	@Override
	public List<Object> listUsersByStatus(int pageNum, int status) {		
		return this.userManageDAO.listUsersByStatus(pageNum, status);
	}

	@Override
	public List<Object> listUsers(int pageNum) {		
		return this.userManageDAO.listUsers(pageNum);
	}

	@Override
	public void updateUser(Integer[] ids,Integer[] status) {		
		this.userManageDAO.updateUser(ids,status);
	}
}
